<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateExpressCustomFeeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('express_custom_fee', function(Blueprint $table)
        {
            $table->increments('id');
//            $table->integer('express_id')       ->defatlt(0)  ->comment('快递公司id');
            $table->integer('express_blade_id') ->defatlt(0)  ->comment('模板id');
            $table->decimal('first_weight')     ->defatlt(0)  ->comment('首重kg');
            $table->decimal('first_price')      ->defatlt(0)  ->comment('首重价元');
            $table->decimal('next_weight')      ->defatlt(0)  ->comment('续重kg');
            $table->decimal('next_price')       ->defatlt(0)  ->comment('续重价元');
            $table->string('province')          ->defatlt('all') ->comment('生效区域省');
            $table->string('city')              ->defatlt('all') ->comment('生效市');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
